<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title>{if $pagetitle ne ""}{$pagetitle} - {/if}{$site_name}</title>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <meta name="description" content="{if $pagetitle ne ""}{$pagetitle} - {/if}{if $metadescription ne ""}{$metadescription} - {/if}{$site_name}">
            <meta name="keywords" content="{if $pagetitle ne ""}{$pagetitle},{/if}{if $metakeywords ne ""}{$metakeywords},{/if}{$site_name}">
                <link href="{$cssurl}/global.php" media="screen" rel="stylesheet" type="text/css" />
                <link href="{$cssurl}/style.css" media="screen" rel="stylesheet" type="text/css" />
                <!--[if lt IE 7]><link href="{$cssurl}/ie6.php" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
                <!--[if IE 7]><link href="{$cssurl}/ie7.php" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
                <link href="{$cssurl}/kwicks-menu.css" media="screen" rel="stylesheet" type="text/css" />

                <script src="{$baseurl}/js/prototype.js" type="text/javascript"></script>

                <script type="text/javascript" src="http://www.trinijunglejuice.com/tjjnews/javascript/menudrop.js"></script>
                <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
                <script type="text/javascript">
                    $.noConflict();
                </script>
                <script type="text/javascript" src="http://www.trinijunglejuice.com/tjjtv/js/jquery.hover.js"></script>
                <script type='text/javascript' src='http://www.trinijunglejuice.com/tjjtv/templates/tjjtv151/kwicks.js'></script>
                <script type="text/javascript" src="{$baseurl}/js/mycustom.js"></script>
                </head>
                <!-- Deluxe Menu -->
                <noscript>
                    <a href="http://deluxe-menu.com">Javascript Menu 
                        by Deluxe-Menu.com</a>
                </noscript>
                <script type="text/javascript">var dmWorkPath = "http://www.trinijunglejuice.com/tjj-menu-900.files/";</script>
                <script type="text/javascript" src="http://www.trinijunglejuice.com/tjj-menu-900.files/dmenu.js"></script>
                <body>
                    <div id="mast_home_white">
                        <TABLE WIDTH="730" BORDER="0" CELLSPACING="0" CELLPADDING="0" ALIGN="center">
                            <TR>
                                <TD VALIGN="top" WIDTH="245" align="left"><SCRIPT LANGUAGE="JavaScript" SRC="http://www.trinijunglejuice.com/random-logo.js" TYPE="text/javascript"></script>
                                </TD>
                                <TD algin="left" WIDTH="485"><DIV ALIGN="right"> <IMG SRC="http://www.trinijunglejuice.com/images/tjj_advertise.gif" WIDTH="10" HEIGHT="60" ALT="Advertise">
                                            <!--/* OpenX Javascript Tag v2.8.7 */-->
                                            <script type='text/javascript'><!--//<![CDATA[
                                                var m3_u = (location.protocol=='https:'?'https://www.trinijunglejuice.com/tjjpromo/www/delivery/ajs.php':'http://www.trinijunglejuice.com/tjjpromo/www/delivery/ajs.php');
                                                var m3_r = Math.floor(Math.random()*99999999999);
                                                if (!document.MAX_used) document.MAX_used = ',';
                                                document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
                                                document.write ("?campaignid=54&amp;target=_blank");
                                                document.write ('&amp;cb=' + m3_r);
                                                if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
                                                document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
                                                document.write ("&amp;loc=" + escape(window.location));
                                                if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
                                                if (document.context) document.write ("&context=" + escape(document.context));
                                                if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
                                                document.write ("'><\/scr"+"ipt>");
                                                //]]>--></script>
                                            <noscript>
                                                <a href='http://www.trinijunglejuice.com/tjjpromo/www/delivery/ck.php?n=a7487dcb&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.trinijunglejuice.com/tjjpromo/www/delivery/avw.php?campaignid=54&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a7487dcb' border='0' alt='' /></a>
                                            </noscript>
                                    </DIV>
                                    <DIV ALIGN="right" > <FONT SIZE="1" face="Arial, Helvetica, sans-serif">
                                            <SCRIPT LANGUAGE="JavaScript" SRC="http://www.trinijunglejuice.com/header.js"></script>
                                        </FONT> </DIV></TD>
                            </TR>
                            <TR>
                                <TD VALIGN="top" COLSPAN="2"><hr align="center"  width="901" style="margin-bottom: 5px; margin-top: 5px;"/>
                                </TD>
                            </TR>
                        </TABLE>
                        <div align="center">
                            <script type="text/javascript" src="http://www.trinijunglejuice.com/tjj-menu-900.js" language=""></script>
                            <hr align="center" width="901" style="margin-bottom: 5px; margin-top: 5px;"/>
                        </div>
                        <div class="center_wrap clearfix text_right blue">
                            <img src="{$imageurl}/tjj_music_header.jpg" alt="tjj header image" height="30px"  border="0" name="language" style="float:left">
                                <ul id="nav_util_list">
                                    {include file="header_menu.tpl"}
                                </ul>
                        </div>
                    </div>
                    <div id="mast_home_blue">
                        <div class="center_wrap clearfix" style="padding:10px 23px 0 0">
                            {include file="searchbar.tpl"}
                            <div class="clearfix"></div>
                            
                        </div>
                        <div class="center_wrap clearfix">
                            {include file="header_top_menu.tpl"}
                            <div class="clearfix"></div>
                            <div id="list_cats" class="clearfix" style="width:160px; float:left;"> 
                                <a class="category-txt" href="{$baseurl}/categories/">
                                    <img alt="Category" src="{$baseurl}/images/tjj_music_we_categories.jpg">
                                </a>
                              <!--<h4><a class="reverse-link">{*$lang42*}</a></h4>-->
                                <ul id="ul_categories">
                                    {insert name=get_audio_categories assign=cats}
                                    {section name=i loop=$cats}
                                        <li><a href="{$baseurl}/browse/categories/audios/z/{$cats[i].CATID}/1/{$cats[i].name|stripslashes}">{$cats[i].name|stripslashes}</a></li>
                                    {/section}
                                </ul>
                                {if $smarty.session.USERID eq ""}
                                    <br /><br />
                                    <div id="reg_box"> <img alt="Members" src="http://www.trinijunglejuice.com/tjjtv/templates/tjjtv151/images/cap_members.gif"> <br>
                                                <br>
                                                    <div id="public_wrap_sm">
                                                        <form id="login-form" name="login-form" action="{$baseurl}/login.php" method="post">
                                                            {if $error ne ""}
                                                                {include file="show_error.tpl"}
                                                            {/if}
                                                            {if $showmessage ne ""}
                                                                {include file="show_message.tpl"}
                                                            {/if}
                                                            <label for="user_login" style="padding-bottom:5px;">{$lang163}</label>
                                                            <br />
                                                            <input name="lusername" id="lusername" type="text" value="" size="15" style="border: 1px solid #CCCCCC; font-family: lucida grande,tahoma,verdana,arial,sans-serif; font-size: 11px; padding: 5px; width:150px;"/>
                                                            <label for="user_password" style="padding-bottom:5px;">{$lang225}</label>
                                                            <br />
                                                            <input type="password" name="lpassword" value="" size="15" id="lpassword" style="border: 1px solid #CCCCCC; font-family: lucida grande,tahoma,verdana,arial,sans-serif; font-size: 11px; padding: 5px; width:150px;" />
                                                            <br/>
                                                            <input class="check" type="checkbox" value="yes" name="remember" id="remember" style="margin-top:7px; margin-bottom:5px; float:left;">
                                                                &nbsp;&nbsp;&nbsp;
                                                                <label for="remember" style="padding-top:5px; padding-bottom:5px;">{$lang788}</label>
                                                                <br />
                                                                <br />
                                                                <button type="submit" onclick="document.getElementById('login_type').value = 'site';" class="side_login_btn">{$lang224}</button> OR <a href="{$baseurl}/fbklogin.php" style="display:inline;vertical-align:top;"><img src="images/fbklogin.bmp" alt="Login with Facebook" title="Login with Facebook" onclick="document.getElementById('login_type').value = 'facebook';"></a>
                                                                <br />
                                                                <input type="hidden" name="authenticate" value="{$lang224}" />
                                                                <input type="hidden" name="redirect" value="{$smarty.request.redirect}" />
                                                                <input type="hidden" name="login_type" id="login_type" value="" />
                                                                <br />
                                                                <a href="{$baseurl}/resetpassword.php">{$lang252}</a> <a href="{$baseurl}/forgot.php">{$lang253}</a>
                                                        </form>
                                                    </div>
                                                    </div>
                                                {/if}
                                                </div>
                                                <div id="browse_main">
                                                    <form method="post" name="frmCategory">
                                                        <input type="hidden" name="categoryName" value="" />
                                                        <table width="100%" cellspacing="3" cellpadding="3" border="0">
                                                            <tr>
                                                                <td width="50%" valign="top"><h2>Top Music</h2></td>
                                                                <td width="50%" valign="top" align="right"><div id="sorting" style="padding-top:0px;"> Sorting:
                                                                        <select onchange="document.frmCategory.submit();" size="1" name="categories">
                                                                            <optgroup label="By time">
                                                                                <option value="all_time" {if $smarty.post.categories eq "all_time"} selected="selected" {/if}>All time</option>
                                                                                <option value="last_7" {if $smarty.post.categories eq "last_7"} selected="selected" {/if}> Last 7 days </option>
                                                                            </optgroup>
                                                                            <optgroup label="By category">	
                                                                                <option value="0">Select one</option>
                                                                                {insert name=get_audio_categories assign=cats}
                                                                                {section name=i loop=$cats}
                                                                                    <option value="{$cats[i].CATID}" {if $smarty.post.categories eq $cats[i].CATID} selected="selected" {/if}>{$cats[i].name|stripslashes}</option>
                                                                                {/section}
                                                                            </optgroup>
                                                                        </select>
                                                                    </div></td>
                                                            </tr>
                                                        </table>
                                                    </form>
                                                    <div id="topvideos_results">
                                                        <table width="100%" cellspacing="2" cellpadding="5" border="0">
                                                            <tr class="heading">
                                                                <td width="20" height="30" ><strong>Rank</strong></td>
                                                                <td width="10">&nbsp;</td>
                                                                <td><strong>Artist</strong></td>
                                                                <td><strong>Video title</strong></td>
                                                                <td width="100"><strong>Views</strong></td>
                                                            </tr>
                                                            {section name=i loop=$vaudios}
                                                                {assign var="count" value=$smarty.section.i.index+1}
                                                                {if $count is even}
                                                                    {assign var="class" value="row1"}
                                                                {else}
                                                                    {assign var="class" value="row2"}
                                                                {/if}
                                                                <tr>
                                                                    <td align="center" class="{$class}">{$count}</td>
                                                                    <td align="center" width="10" class="{$class}">
                                                                        <a href="{$baseurl}/audios/{$vaudios[i].AUDIOID}/{insert name=get_seotitle_from_audioid assign=title audioid=$vaudios[i].AUDIOID}">
                                                                        {capture assign='player'}images/audiothumbs/{$vaudios[i].AUDIOID}-1{$vaudios[i].ext}{/capture} 
                                                                        {if $player|file_exists}
                                                                            <img  align="left" width="72" height="53" border="1" class="tinythumb"  alt="{$vaudios[i].title|stripslashes}" src="{$athumburl}/{$vaudios[i].AUDIOID}-1{$vaudios[i].ext}" />
                                                                        {else}
                                                                            <img  align="left" width="72" height="53" border="1" class="tinythumb"  alt="{$vaudios[i].title|stripslashes}" src="{$athumburl}/default.png" />
                                                                        {/if}
                                                                        {*<img align="left" width="72" height="53" border="1" class="tinythumb" alt="{$vaudios[i].title|stripslashes}" title="{$vaudios[i].title|stripslashes}" src="{$athumburl}/{$vaudios[i].AUDIOID}-1{$vaudios[i].ext}">*}
                                                                    </a></td>
                                                                <td class="{$class}">{if $vaudios[i].artist|stripslashes neq ""}{$vaudios[i].artist|stripslashes}{else}Anonymous{/if}</td>
                                                                <td class="{$class}"><a href="{$baseurl}/audios/{$vaudios[i].AUDIOID}/{insert name=get_seotitle_from_audioid assign=title audioid=$vaudios[i].AUDIOID}">{$vaudios[i].title|stripslashes|truncate:20:"...":true}</a></td>
                                                                <td class="{$class}">{$vaudios[i].viewcount|stripslashes}</td>
                                                            </tr>
                                                        {/section}
                                                    </table>

                                                </div>
                                            </div>
                                            </div>
                                            </div>
